package org.zjvis.datascience.common.widget.enums;


/**
 * @description 画布系统
 * @date 2022/1/26
 */
public enum DashboardTypeEnum {

    PANEL("系统", "panel",1),
    REPORT("报告", "report",2);


    private String name;

    private String engName;

    private Integer val;

    DashboardTypeEnum(String name,String engName, Integer val){
        this.name = name;
        this.engName = engName;
        this.val = val;
    }

    public String getName() {
        return this.name;
    }

    public String getEngName() {
        return engName;
    }

    public int getVal() {
        return this.val;
    }

    /**
     * TODO
     * @param name
     * @return
     */
    public static Boolean isReport(String name){
        return name.equalsIgnoreCase(DashboardTypeEnum.REPORT.getEngName());
    }


}
